From 8a9311d7078206cf179ce59503ac468bb1bd6454 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Thu, 20 May 1993 23:15:17 +0000 Subject: [PATCH] Fix the fix to scrollbar computaaFix the fix to the fix for scrollbar computation. --- src/xdisp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index f034bb203e6..b991aeb5805 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1069,14 +1069,14 @@ done: if (! MINI_WINDOW_P (w) || (w == XWINDOW (minibuf_window) && ! echo_area_glyphs)) { + whole = ZV - BEGV; start = startp - BEGV; /* I don't think this is guaranteed to be right. For the moment, we'll pretend it is. */ - end = Z - XINT (w->window_end_pos) - BEGV; - whole = ZV - BEGV; + end = (Z - XINT (w->window_end_pos)) - BEGV; if (end < start) end = start; - if (whole > (end - start)) whole = end - start; + if (whole < (end - start)) whole = end - start; } else start = end = whole = 0; -- 2.30.2